package com.situ.crm2026.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.situ.crm2026.model.MemberCourseReservation;
import com.situ.crm2026.model.dto.ReservationDto;

import java.util.List;

public interface MemberCourseReservationService {
    boolean reserve(Integer memberId, Integer courseId,Integer status,Integer courseType);
    boolean cancel(Integer reservationId);
    boolean confirm(Integer reservationId);

    // 查出会员和课程的预约记录
    MemberCourseReservation findByMemberAndCourse(Integer memberId, Integer courseId);

    //检查课程时间的冲突
    boolean hasTimeConflict(Integer memberId, Integer courseId);
    //查询会员的私课预约记录
    Page<ReservationDto> findAllWithDetails(Page<ReservationDto> page);
}
